<!DOCTYPE html>
<html>
 <head>
  <meta charset="utf-8">
  <title>表单练习</title>
  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
 </head>
 <body>
	 <!-- action-->
	 <form action="http://localhost:11458/stu/add2" method="post">
	 
	 <input type="hidden" name="pid" id="pid" value="666"/>
	 
  <div class="container">
   <h2>学生信息管理系统</h1>
   <div class="form-group">
    <label for="name">姓名:</label>
    <input class="form-control" type="text" name="name" id="name" placeholder="请输入姓名"/>    
   </div>
   
   <div class="form-group">
    <label for="eduTime">上学时间:</label>
    <input class="form-control" type="date" name="eduTime" id="eduTime" />
   </div>
   
   <div class="form-group">
    <label for="age">年龄:</label>
    <input class="form-control" type="number" name="age" id="age" placeholder="请输入年龄" />
   </div>
   
   <div class="form-group">
    <label for="sex">性别:</label>
    <!--radio选项是互斥的 同名只能选择一个;checked 默认选择-->
    <div class="radio-inline">
     <input type="radio" name="sex" id="sex" checked="checked" value="1"/>男
    </div>
    <div class="radio-inline"> 
     <input type="radio" name="sex" id="sex" value="0"/>女
    </div>
   </div>
   
   <div class="form-group">
    <label for="hobby">爱好:</label>
    <dvi class="checkbox-inline">
     <input type="checkbox" name="hobby" id="hobby" value="乒乓球"/>乒乓球
    </dvi>
    <dvi class="checkbox-inline">
     <input type="checkbox" name="hobby" id="hobby" value="爬山"/>爬山
    </dvi>
    <dvi class="checkbox-inline">
     <input type="checkbox" name="hobby" id="hobby" value="唱歌"/>唱歌
    </dvi>
   </div>
   
   <div class="form-group">
    <label>学历:</label>
    <!--select下拉框;option 选项--->
    <select class="k" id="edu" name="edu">
     <option value ="1">幼儿园</option>
     <option value ="2">小学</option>
     <option value ="3">初中</option>
     <option value ="4">高中</option>
     <option value ="5">大学</option>
     <option value ="6">研究生</option>
    </select>
   </div>
   
   <div class="form-group">
    <button class="btn btn-primary" type="submit" name="submit" value="保存">保存</button>
    <button class="btn btn-danger" value="取消" name="clear">取消</button>
   </div>
   
  </div>
  </form>
 </body>
</html>